package com.arron.DesignMode.adapter;

/**
 * @Classname AdapterVoltage
 * @Date 2020/9/13 14:37
 * @Created by 刘
 */
public class AdapterVoltage extends board implements Voltage5v {

    @Override
    public int print5v() {
        //拿到输出220v方法返回的结果，再进行处理
        int i = super.print220v();
        int result = i/44;
        System.out.println("使用适配器将220v电压转换成5v成功");
        return result;
    }
}
